package org.qingke.mail.protal.config;

import java.io.IOException;
import java.util.Properties;

import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;

public class SystemContext {
   
	private static Properties properties=new Properties();
	private static String ssourl;
	
	static{
		try {
			Resource resource=new ClassPathResource("application.properties");
			properties.load(resource.getInputStream());
			ssourl = properties.getProperty("sso.url");
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}

	public static String getSsourl() {
		return ssourl;
	}

	public static void setSsourl(String ssourl) {
		SystemContext.ssourl = ssourl;
	}
}
